// https://way.jd.com/jisuapi/search?keyword=白菜&num=10&appkey=您申请的APPKEY

// const BASE = "https://way.jd.com/jisuapi/search";
const BASE = 'http://localhost:3000/jisuapi/search'
const APPKEY = 'da39dce4f8aa52155677ed8cd23a6470'

export function searchMap(keyword: string, num: number) {
  return encodeURI(`${BASE}?keyword=${keyword}&num=${num}&appkey=${APPKEY}`)
}

/**
 * 登录
 * @returns
 */
export function apiLogin() {
  return '/backend/adminUserLogin/loginByPwd'
}

/**
 * 查询用户信息
 * @param adminUserId
 * @returns
 */
export function apiUser(adminUserId: number) {
  return `/backend/adminUser/${adminUserId}`
}

// 查询用户权限
export function apiRolePermissions() {
  return '/backend/adminRolePermission/list'
}
